//
//  CWQVideoIntroductView.m
//  腾讯云直播test
//
//  Created by 陈武琦 on 16/8/3.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "CWQVideoIntroductView.h"
#import "UITableView+MTTHeaderFooterFittingHeight.h"

@implementation CWQVideoIntroductView

- (void)awakeFromNib {

    self.isDisplayAllContent = NO;

}

- (IBAction)displayAllContent:(UIButton *)sender {
         self.isDisplayAllContent = !self.isDisplayAllContent;
    if (self.isDisplayAllContent) {
//        [self.clickBlick(YES) mtt_updateTableHeaderViewHeightWithConfig:^(id view) {
            self.content.numberOfLines = 0;
            sender.transform = CGAffineTransformMakeRotation(M_PI);
        self.clickBlick(YES);
//        } animated:YES];
        
    }else {
        
//        [self.clickBlick(YES) mtt_updateTableHeaderViewHeightWithConfig:^(id view) {
            sender.transform = CGAffineTransformIdentity;
            self.content.numberOfLines = 1;
        self.clickBlick(NO);
//        } animated:YES];
        
    }

    
    /*
    
    if (self.isDisplayAllContent) {
             [self.clickBlick(YES) mtt_updateTableHeaderViewHeightWithConfig:^(id view) {
                 self.content.numberOfLines = 0;
                self.content.text = @"fadsfdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfdsfdsfsdfsdfsdfsdfsdfsdfsdfsdfsdfsd";
                 sender.transform = CGAffineTransformMakeRotation(M_PI);
             } animated:YES];
             
         }else {
             
             [self.clickBlick(YES) mtt_updateTableHeaderViewHeightWithConfig:^(id view) {
                 sender.transform = CGAffineTransformIdentity;
                 self.content.numberOfLines = 1;
             } animated:YES];
             
         }

*/
}


@end
